package com.imooc.articles_mongodb_project.dto;

import com.imooc.articles_mongodb_project.common.validator.SaveValidator;
import com.imooc.articles_mongodb_project.common.validator.UpdateValidator;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class CommentDTO {

    @NotBlank(message = "文章id不能为空", groups = {SaveValidator.class})
    private String articleId;
    @NotBlank(message = "评论内容不能为空", groups = {SaveValidator.class})
    private String content;
    @NotBlank(message = "用户名不能为空", groups = {SaveValidator.class})
    private String userName;

    private String parentId;
}
